home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / pipnss / nsICMSDecoder.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  4KB  |  122 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsICMSDecoder.idl
  3.  */
  4.  
  5. #ifndef __gen_nsICMSDecoder_h__
  6. #define __gen_nsICMSDecoder_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. typedef void (*NSSCMSContentCallback)(void *arg, const char *buf, unsigned long len);
  18. #define NS_CMSDECODER_CONTRACTID "@mozilla.org/nsCMSDecoder;1"
  19. class nsICMSMessage; /* forward declaration */
  20.  
  21.  
  22. /* starting interface:    nsICMSDecoder */
  23. #define NS_ICMSDECODER_IID_STR "65244a06-a342-11d5-ba47-00108303b117"
  24.  
  25. #define NS_ICMSDECODER_IID \
  26.   {0x65244a06, 0xa342, 0x11d5, \
  27.     { 0xba, 0x47, 0x00, 0x10, 0x83, 0x03, 0xb1, 0x17 }}
  28.  
  29. /**
  30.  * nsICMSDecoder
  31.  *  Interface to decode an CMS message
  32.  */
  33. class NS_NO_VTABLE nsICMSDecoder : public nsISupports {
  34.  public: 
  35.  
  36.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ICMSDECODER_IID)
  37.  
  38.   /* void start (in NSSCMSContentCallback cb, in voidPtr arg); */
  39.   NS_IMETHOD Start(NSSCMSContentCallback cb, void * arg) = 0;
  40.  
  41.   /* void update (in string aBuf, in long aLen); */
  42.   NS_IMETHOD Update(const char *aBuf, PRInt32 aLen) = 0;
  43.  
  44.   /* void finish (out nsICMSMessage msg); */
  45.   NS_IMETHOD Finish(nsICMSMessage **msg) = 0;
  46.  
  47. };
  48.  
  49. /* Use this macro when declaring classes that implement this interface. */
  50. #define NS_DECL_NSICMSDECODER \
  51.   NS_IMETHOD Start(NSSCMSContentCallback cb, void * arg); \
  52.   NS_IMETHOD Update(const char *aBuf, PRInt32 aLen); \
  53.   NS_IMETHOD Finish(nsICMSMessage **msg); 
  54.  
  55. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  56. #define NS_FORWARD_NSICMSDECODER(_to) \
  57.   NS_IMETHOD Start(NSSCMSContentCallback cb, void * arg) { return _to Start(cb, arg); } \
  58.   NS_IMETHOD Update(const char *aBuf, PRInt32 aLen) { return _to Update(aBuf, aLen); } \
  59.   NS_IMETHOD Finish(nsICMSMessage **msg) { return _to Finish(msg); } 
  60.  
  61. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  62. #define NS_FORWARD_SAFE_NSICMSDECODER(_to) \
  63.   NS_IMETHOD Start(NSSCMSContentCallback cb, void * arg) { return !_to ? NS_ERROR_NULL_POINTER : _to->Start(cb, arg); } \
  64.   NS_IMETHOD Update(const char *aBuf, PRInt32 aLen) { return !_to ? NS_ERROR_NULL_POINTER : _to->Update(aBuf, aLen); } \
  65.   NS_IMETHOD Finish(nsICMSMessage **msg) { return !_to ? NS_ERROR_NULL_POINTER : _to->Finish(msg); } 
  66.  
  67. #if 0
  68. /* Use the code below as a template for the implementation class for this interface. */
  69.  
  70. /* Header file */
  71. class nsCMSDecoder : public nsICMSDecoder
  72. {
  73. public:
  74.   NS_DECL_ISUPPORTS
  75.   NS_DECL_NSICMSDECODER
  76.  
  77.   nsCMSDecoder();
  78.  
  79. private:
  80.   ~nsCMSDecoder();
  81.  
  82. protected:
  83.   /* additional members */
  84. };
  85.  
  86. /* Implementation file */
  87. NS_IMPL_ISUPPORTS1(nsCMSDecoder, nsICMSDecoder)
  88.  
  89. nsCMSDecoder::nsCMSDecoder()
  90. {
  91.   /* member initializers and constructor code */
  92. }
  93.  
  94. nsCMSDecoder::~nsCMSDecoder()
  95. {
  96.   /* destructor code */
  97. }
  98.  
  99. /* void start (in NSSCMSContentCallback cb, in voidPtr arg); */
  100. NS_IMETHODIMP nsCMSDecoder::Start(NSSCMSContentCallback cb, void * arg)
  101. {
  102.     return NS_ERROR_NOT_IMPLEMENTED;
  103. }
  104.  
  105. /* void update (in string aBuf, in long aLen); */
  106. NS_IMETHODIMP nsCMSDecoder::Update(const char *aBuf, PRInt32 aLen)
  107. {
  108.     return NS_ERROR_NOT_IMPLEMENTED;
  109. }
  110.  
  111. /* void finish (out nsICMSMessage msg); */
  112. NS_IMETHODIMP nsCMSDecoder::Finish(nsICMSMessage **msg)
  113. {
  114.     return NS_ERROR_NOT_IMPLEMENTED;
  115. }
  116.  
  117. /* End of implementation class template. */
  118. #endif
  119.  
  120.  
  121. #endif /* __gen_nsICMSDecoder_h__ */
  122.